package com.kimho.receipt.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kimho.core.PageInfo;
import com.kimho.inhouse.domain.Inhouse;
import com.kimho.receipt.persistence.ReceiptMapper;

@Service
public class ReceiptService {
	
	@Autowired
	private ReceiptMapper receiptMapper;
	
	public long getTotal(PageInfo pi){
		return this.receiptMapper.getTotal(pi);
	}
	
	public List<Inhouse> getAllReceipt(PageInfo pi){
		return this.receiptMapper.getAllReceipt(pi);
	}
}
